package com.example.security.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.security.domain.Menu;
import com.example.security.mapper.MenuMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@RequiredArgsConstructor
public class MenuService  {


    private final MenuMapper menuMapper;

    public List<Menu> queryMenuList(Menu menuBo) {
        return menuMapper.selectList( new QueryWrapper(menuBo));
    }
}
